/*
 * @Date: 2024-12-18 10:33:15
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2024-12-18 11:03:32
 * @Description: 函数式调用组件
 */
import CallComp from './CallComp.js'
import { openOperationLogs } from './CallCompService.js'

export let callComp = null
export const compSymbol = Symbol()

const plugin = {
  install(app, options) {
    callComp = new CallComp(app)
    app.config.globalProperties.$callComp = callComp
    app.config.globalProperties.$openLogs = openOperationLogs
    app.provide(compSymbol, callComp)
  }
}

export default plugin